package File;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;


public class FileCopyDemo1 {
	public static void main(String[] args) throws IOException {
		FileReader fr = new FileReader("D:\\java_workspace\\java_study\\java_study\\src\\File\\Student.java");
		FileWriter fw = new FileWriter("d:\\IODemo.java");
		
		
		int len;
		char[] chs = new char[1024];
		while((len = fr.read(chs)) != -1) {
			fw.write(chs,0,len);
			fw.flush();
		}
		
		fr.close();
		fw.close();
	}
}
